package com.whl.cloud.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.whl.cloud.model.OrderParam;


@Controller
public class PayController {
	@RequestMapping(value = "/order", method = RequestMethod.POST)
	public @ResponseBody String order(@RequestBody OrderParam param) throws Exception {
		System.out.println("订单号："+param.getOrderNo()+"，"+"商品名称："+param.getGoodsName()+"，"+"金额："+param.getAmount());
		return "下单成功";
	}

}
